/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package generic4;

/**
 *
 * @author Liem
 */
public class GenericClass<T,U> {
    private T isi1;
    private U isi2;
    
//Yang TIDAK Valid
/*

    public void setisi(T isi1){
        this.isi1 = isi1;
    }
    
    public void setisi(U isi2){
        this.isi2 = isi2;
    }
    
*/
    
// Yang Valid
    public void setisi1(T isi1){
        this.isi1 = isi1;
    }
    
    public void setisi2(U isi2){
        this.isi2 = isi2;
    }
    
    public T getisi1(){
        return isi1;
    } 

    public U getisi2(){
        return isi2;
    } 
}
